package com.serkol.abmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 
 * @TableName automobile

s
 */
@TableName(value ="automobiles")
public class Automobiles implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String brand;

    /**
     * 
     */
    private String model;

    /**
     * 
     */
    private String carNum;

    /**
     * 
     */
    private String onLoad;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Date createDate;

    /**
     * 
     */
    private Date updateDate;

    private  String licensePlateNum;
    private  Long groupId;
    private  Integer groupType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 
     */
    public String getModel() {
        return model;
    }

    /**
     * 
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     * 
     */
    public String getCarNum() {
        return carNum;
    }

    /**
     * 
     */
    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    /**
     * 
     */
    public String getOnLoad() {
        return onLoad;
    }

    /**
     * 
     */
    public void setOnLoad(String load) {
        this.onLoad = load;
    }

    /**
     * 
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * 
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * 
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLicensePlateNum() {
        return licensePlateNum;
    }

    public void setLicensePlateNum(String licensePlateNum) {
        this.licensePlateNum = licensePlateNum;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Automobiles that = (Automobiles) o;
        return groupId == that.groupId && Objects.equals(id, that.id) && Objects.equals(brand, that.brand) && Objects.equals(model, that.model) && Objects.equals(carNum, that.carNum) && Objects.equals(onLoad, that.onLoad) && Objects.equals(status, that.status) && Objects.equals(createDate, that.createDate) && Objects.equals(updateDate, that.updateDate) && Objects.equals(licensePlateNum, that.licensePlateNum) && Objects.equals(groupType, that.groupType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, brand, model, carNum, onLoad, status, createDate, updateDate, licensePlateNum, groupId, groupType);
    }

    @Override
    public String toString() {
        return "Automobiles{" +
                "id=" + id +
                ", brand='" + brand + '\'' +
                ", model='" + model + '\'' +
                ", carNum='" + carNum + '\'' +
                ", onLoad='" + onLoad + '\'' +
                ", status=" + status +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", licensePlateNum='" + licensePlateNum + '\'' +
                ", groupId=" + groupId +
                ", groupType=" + groupType +
                '}';
    }
}